<template>
  <view class="message-popup">
    <view class="message-content">
      <text>{{ message }}</text>
    </view>
  </view>
</template>

<script>
export default {
  props: {
    message: String, // 接收消息内容作为 props
  },
};
</script>

<style scoped>
.message-popup {
  position: fixed;
  bottom: 20rpx;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  padding: 10rpx;
  border-radius: 10rpx;
  box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.1);
}

.message-content {
  text-align: center;
  font-size: 14px;
  color: #333;
}
</style>
